import request from '@/utils/request'

// 查询入库详情记录列表
export function listRecordinfo(query) {
  return request({
    url: '/medicine/recordinfo/list',
    method: 'get',
    params: query
  })
}

// 查询入库详情记录详细
export function getRecordinfo(storageInDetailId) {
  return request({
    url: '/medicine/recordinfo/' + storageInDetailId,
    method: 'get'
  })
}

// 新增入库详情记录
export function addRecordinfo(data) {
  return request({
    url: '/medicine/recordinfo',
    method: 'post',
    data: data
  })
}

// 修改入库详情记录
export function updateRecordinfo(data) {
  return request({
    url: '/medicine/recordinfo',
    method: 'put',
    data: data
  })
}
export function shenhe(medicineStorageInRecord) {
  return request({
    url: '/medicine/record/shenhe',
    method: 'post',
    data: medicineStorageInRecord
  })
}
export function tj(storageInDetailRecord) {
  return request({
    url: '/medicine/record/tianjia',
    method: 'post',
    data: storageInDetailRecord
  })
}
// 删除入库详情记录
export function delRecordinfo(storageInDetailId) {
  return request({
    url: '/medicine/recordinfo/' + storageInDetailId,
    method: 'delete'
  })



}
